#include <iostream>
#include "array.h"

using namespace std;

int main()
{
	Array mas(4);
	for (int i = 0; i < 7; ++i)
		mas.push_back(i);
	mas.set(1,5);
	Array newmas(mas);
	cout << "size " << newmas.get_mem_size() << endl;
	cout << newmas.get(2) << endl;
	mas.set(2,7);
	newmas=mas;
	cout << "after = " << newmas.get(2) << endl;
	cout << mas.get(6) << endl;
	cout << mas.get_size() << endl;
	return 0;
}

